package com.cd.queue.jpa.repo;

import com.cd.queue.jpa.domain.QueueOperationRecord;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;

import java.util.List;


/**
 * @Description create by JPA BUDDY
 * @Author lqq
 * @Date 2024/8/20 9:43
 **/
@Repository
public interface QueueOperationRecordRepository extends CrudRepository<QueueOperationRecord, Long> {

    //按活动名称查找 limit 20
    List<QueueOperationRecord> findByOrganiser(String organiser);
    //按创建用户查找 limit 20
    List<QueueOperationRecord> findByUsername(String username);

//    List<QueueOperationRecord> findByUserId(Long userId);
//
//
//    @Modifying
//    @Transactional
//    @Query(value = "update lqq_card_record set dtype='LqqCardRecord' where dtype is null or dtype=''",nativeQuery = true)
//    int updateAllDType();



}